begin profile functionality