work on the getProfile method