updating attributes