update add method