revert recordError() method