removed debug log code