how to regulate thoughts