added code to debug and debugging transcript