updates to chord.c