barrier solution 3.5.4