changing m ax to max