Style changes. Use atomic op. items() instead of keys()