x.range function corrected...