changed position buffer to use 2 coordinates instead of 3.