made error condition more readable