added array support to formats