add ref_ptrs in tilenode and remove unused function