ensure hash is created and values are saved