clean file and code almost done