allows an attribute to be updated by a specified id