update labels properly