update model to have unique hash