changed add_chords method