changed sets to maps