save pattern data too