added sparse group parameter to fitting function