small code cleanup
rename socket 's' to 'sock'