removing unnecessary directory depth