the first loop is done 290969