add hmid to save methode