only detecting the first half of baabaa input