new algorithm in orders win