changed an instant of user name to a variable