update how we iterate variants and retrieve metadata