made the annotation code as plugin