background and write