removing extra files and directories