remove outdated try-catch code