added debugging
added debugging