write some lua code