pack method for each stream and recur method (version 6.1.0)