fix for add_attributes typo