use bind once to speed up dirt checking where possible