clean code on userdict