modified .add method