fix array printing