check for amendment in meta data, not doc now with right variable