working on refactoring PoseAnalyzer