added transformation from struct to map of strings