added set_id function for ease of use