trouble with dictionary passing