set defaults in error to match expected output