The above block to check data range is a duplicate of the code 50 lines up.