edit for socket