add function to decode tcp