need to fix cg_perform to account for possible errors in center optim process