script range check