implementing the analysis call (not completed)