replaced deprecated join and split functions with equivalent implode and explode.