In the process of electrolysis.... as it is that charges move from negative to positive terminal... and that the cathode is the negative terminal.... so according to me the metal should get deposited on the anode (negative to positive) then why does it get deposited on the cathode?