implement expandOrder