add defer block
change 'defer' block to 'background'