allow arrays to be passed into helper functions