reverted version of Profile class to original commit