worked backwards to add seq2sparse