removed logging; added debugging