further work on sparse matrices