remove obsolete err check