remove dependency on min macro