adding bar method