filled draw and update function