perhaps set mode here too?