vis workind for finite set