removing unnecessary parent directory