compile print array