second phase AVB demo code