added send_subpart function