added user input for filename