moved setup logic to start state
fixed typo