added control for repetitive file types