pattern engine halfway