optimize the background