added pruning of impossible search branches