deleted unneccessary lines from code