implemented addEntry