fixed some variables being public and used listen packet on the constant frequency