add x.min() and x.mean()