added debugging code
removed debugging code