further improved efficiency of 27 by reducing search space