moving exit status to next line
removing obsolete lines