change functions order.