outputting correct data