finish setVal()