recreated GDI01 in Lua