adapted to rackattack protocol 3