remove unnecessary files and make directory