removed endofdirectory