add 1d and 2D wstat