adds array-value replacement feature