order calculation method works