add function check stat