update attrs