forgot to export the error data type