there should be an error type