updated model to work with n users