fix function params for renderAnnotations