fixed issue with multiple file naming