log to file done
fisrt and last 10 records done