add input length to m2 statistics