streamline loops generating pbs jobs in realignment step