updated transform_add & 32bit compatibility