added bar attribute