fixed errors with profile class