converted to if