change tag values from struct to map