fixed relay code, round 1