improved efficiency of hybrid version