compilation error fixed in map