initial codes for lua