changed function naming, added handler to profile