updated userModel functions