debug code added back in