improved welt detection logic - out of range and error tolerance