update engine with sun management