add bg active variable
merge