added optmize tasks