make order result calculation a bit cleaner