added pulic to constructor of mapper