fixed a small bug (not returning anything) in the analyser