removed debug related wrong function call