modify order printing function