remove magic number in lua