fix state-input constraint bug
remove extra comments