changed code to take a user's name