lua code compaction