sorta working power on off state in graph