took out everything not needed and cleaned up code to make it look nice