clean up dictionary