next couple of min/max macro replacement