update to Double buffer