insert_with_add for consistent adding elements