refactored
implemented repo layer for profiles