more brainstorming on implementation
ditch dotrepmap for linerepmap
implemented makelinerepmap function