dictionary cleanup