replaced hash list with dict