changed refactr to SmartThings