moved MAX_NUM_UNIQUE_PTS_NOMINAL inside function call.