changed new user function