pattern engine done