moved swaneets logic to statistics and syntax