added if/else to update project for errors