created new method: addAnnotation(), so the logic could be called from several more places.