Its better to assign file name to a final String and use it as a parameter