make the changed check more efficient