modified return type of dictionary min and max value methods