convert hash ref to list