sparse vector generation code...