rewrite dictionary creation using literals