update and optimize content