importing ssparse in constructor