changed code to take into account the renaming of graphicAnnotation to graphicAnnotationS.