cleaned my debugging code