working with socket stream 3.3