remove unnecessary error check.