remove try and catch