reset previousVal here?