use 0-1 for on-off type