setelem is deprecated, please use set_elem instead