power of two improvements