add stat check