creating dicts
now including tests