So if dir doesn't belong to [0,7] we can just jump to the next iteration?