BUG: dictionary is input, not output