need to change it in lua to make it compatible