added debugging code 2