trying to get a sparse version working