this seems to get the same performance on current good.cl as the reference solution