rm unnecessary error handling code.