for some reason i tried to add an exact lock and it only works if you have more keys than the requirement, even though the check for exact locks happens before the less than check (right after defining relevant_value)