added check whether number of returns is larger than number of returns of given pulse
added check whether number of returns is larger than number of returns of given pulse