updated moai sample