added comment and tstate probability