refactored 'whatBar' into 'bar' to simplify it