getProfile not defined