add_entry() corrected