modify error calls