refactoring for akka RangeService