reduce copying of sparse vectors, debug