fix for no method .to_h