len<-length(records)-1;