change socket and void generation