changed to 32 bit  alignment of buffer