changed if to else if

changed if to else if