removed unnecessary for loop in SPW rest frequency finding that always looped once