refactor api profile modela