removed debug logic