switching machines, just changed bmap