removed callback parameter from add method