refactoring StudyProcessor