asserts placed for debugging
fixed quote creation at ordering