support for more than 3 gems selected!!