change the function name to file and the parameter name from template to filename