working version with sparse features