added new function - getProfileInfo()