changed add method