finish compiling printing of arrays