reset function order