functions "add" and "added" merged