added substring prediction part 2#