removed extraneous RANGE code