remove unecessary directory depth