add field pattern making function (square)