changed to mapping userinfo to object