corrected counting; modified display