map value implementation