removed debuglog statements