deleted unessessary if statement