trying to make directory deletion more effcient
formatting fix