update lua struct