allow non-ints in dict
make sure pqueue can only accept integers by using %n