using global for error string