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