-removed some debug logs