add linear attenuation