Change gap size and mfact