adds []= method