first working output  for comparator.