construct and get value in map