change path and delete redundant files