not using i in doc loop using d