Methylene blue enhances memory and the retention of fear extinction when administered after a successful exposure session but may have a deleterious effect on extinction when administered after an unsuccessful exposure session .