added map8(in,rangeStart,rangeEnd)