generating user model