ninterval should have been length of interval