e2 c style to lua style