wrote germline statistic function