for building the user dictionary