add groupid to readings