reorganize scattering functions