added firstRecord, lastRecord