why is this new "if" necessary?