added control_group functionality