resource some function order