return error as Error not String