needs to be <= when comparing against resource indexes