packetizing data

function not getting called?