mapper by contents