make property into patterns