function add

added rowscan and statisticavg