almost working. trying to diff. ones(N1).