refactored profiles.clj