adding all the different loops