checking with output