fixed to allow value arrays.
suggested changes.
suggested changes.
suggested changes.