proper check for currentMin/currentMax before prepending functions