add missing barPrototype
Merge pull request #50 from johnikx/prototype-improvement

added missing barPrototype