turnOn function using Infitinty and 0 as pattern