fixed grammar with correct follow sets