resolved a bug in update(api doesn't exists and implements some apis