fix generic return error as referenced by compiler