fixing orderFactory signature