working on document mapper