Why use setVal above but not here?