update to fix error response