differentiate the filename based on type