end directories cleaning