change dictionaries for consistency with static typing