file name changed to a variable userFile