script corrections
addition of metric elementas child of agreement variables