removing error calculation on the GPU