compute unsafe_values instead of hardcoding them