some reordering for speed
move back from 64bit to 32bits