range scan workaround