write the group code