update documentation of array_element