added set mode