added exception to max_diff