I think I got the bits the wrong way around