added ordersByStatus business logic