tribial: change function order