mapper: add main fuctional