fixed relations in order and contract