checking the printing cases for statements.