Up uses for loop instead of seq(1)