network compression first attempt