using dictionary in client