add loop related doc