removed unused directive
removed unused import
added filtering for file name length