corrections on [] and []= methods