made chord var local to the function. it is never referenced anywhere else