fix size and mask