does something reset previousVal to ''?