adding debugging code commented out