cleaning up dictionary