remove unnecessary error checks