add function about lua