removed an unnecessary line of code in  profile class