now add function in luaTool