remove dangling prints