updated profile logic