this line ensures that function works when parameters 'newest' and 'best' are passed