smoothed state transitions and added curves to B