added forloop