better handling of background period changes