cleaning up decay profile code significantly