now only prints min or max age if value given in file