pass variant id as well as name