removing some unwanted leftovers