max pattern added