works in linux64 with setMap function