removed debug print function