debugging code removed + graphing abandoned