add two loop