fixed typos in []= method