changed error type