adding "repeat" block to printout