ensure backward compatibility
changed attenuation calculation