added fence factory