added SparseGrid stuff