pass default value in error cases