update uniform api