update lua snippet