got rid of unnecessary error catch