refactored getAnnotations() to clarify intends