modify hash ref