implement put and renamed updateAttribute to attribute