working on error_json