fixed for range line error.  Call finalize method to output results.