implemented "add" functionality for all entities