change errorType evaluation fucntion