function to make creating sequences/loops of transformations easy