replace obsolete annotation with current equivalent