rm extraneous main stmts