committing before starting double buffer