added debugging code
cleaning up testing