removed extra check for element