order creation. added checking for count