should not continue loop when ci = NULL