optimize for 32-bit platform