mental mechanisms