fixed compile example