create functions get_group_id for bmps and bsfs