added statfun