rewrite stat console select pattern