cleaned up debugging code