added estimation of ge/gi direction