rewrite search of transversal_wavenumbers, but it doesnt work