removing pattern detector from hopeless.c