cleaning up debugging code