remove the last stmt