change remove file and directory code