testing and debugging of 3a implementation