rewrite of annotation adapter