Hi guys,

I am not an electrician, but as new home owner got a lot of help by reading this forum.
Please help me with this. I hired electrician to separate light fixture from fan. After job was done, I decided to replace switch with timer and discover:
I have 2 cond. wire and two switches. Now hot wire (black) through switch goes to lamp, white wire is marked as hot now and through switch goes to fan. Ground wire connected to switches at grounding screws and I assume (I will check tonight) is used as neutral and as ground in light fixture and fan.
Is it against of NEC or not?
Thank you all in advance.
Alex