reorganized functions for OCD