got rid of NULL set_id problem