refactoring of the history 'user profile'