start of mapper