provide interleaving as parameter