cleanup and updates profile