the first loop is done 277966