fixing oversensitive input problem