remove the debugging to confirm that distance attenuation is working