change logic of getting variants