refactored version of fEPSP_analyser