solving an age-old question in my code about uniforms: the index isnt always the same as the location