showing error as range class failed