added array support
removed printlns
added array support