optimize to_hyper done