got rid of get_element_ptr error