separate function added to create dict