improved loop accuracy