build pattren