fix for non-pow2 number of elements