changing to just a single set mode method
updating API