adding control for ambient factor