refactor radiation logic