fix logic when comparing inputs