remove obsolete error check