started adding array support