subroutines for reprint arrays