code comment and re arrange code
stateful autosuggest