Hosts Japan moved closer to a first World Cup quarter-final with a dramatic bonus-point victory over Samoa.
The sides exchanged three penalties in a nervy start before Samoan-born centre Timothy Lafaele scored the opening try.
Kazuki Himeno, Kenki Fukuoka scored after the interval before Kotaro Matsushima sealed the late bonus point, while Henry Taefu scored a consolation.
Japan top Pool A and will qualify if Scotland fail to beat them and Russia in their final two matches.
The unbeaten Brave Blossoms face Scotland in the final pool game on Sunday, 13 October.
Samoa, who are out of the tournament, will end their campaign against Ireland on 12 October.