separating out the filename into a variable was wasteful