updated dictionary, added to que function