added methods for updating attributes