add code to have minimum value for chords