divided mapping function on multiple files
Former-commit-id: 6643d9efa0640ec9cc83f7e4b9cffbc5f5626384