added uniformvar class
moved setting uniform to uniformvar class