deleted unecessary sections of code