removed unused error code