refactoring sentenceState
rinished refactoring warnings in sentence state