NAMESPACE corrected / MAX and Min performance added