modified to test the Barker code 11
rename variables