removed debug if statement