maxand min in joint bilateral ..