removes some artifacts.