corrected order for fileName parse