last bits of twiddling