var buf 2 index