add reset order function