checking for global Buffer in decode