update the add functions