refactored StudyProcessor