updating begin clause