changed main.lua