add update past api