modify get method and the use of refresh_hash method