globalL2graderror

ugly implementation, but seems to work