adds pref for max time