new max function
fixed pep8