fixed typo to measure only while user types