slight edit for slightly faster check