minor tweak to attack/release calculation