read dictionary into array