adding array support