add two levels function bar.