added missing if