first draft of mapper