use ToAnalysis instead of BaseAnalysis