made index Buffer Work