remove_empty_and_bad anew