updated rec and bg opacity