under working, temporary commit, add make indexbuffer routine.