proposal on @dangra's idea to solve the range, xrange problem