add annotations and statements to statement group