Doublehead loop in Jackson