update to allow arrays