removed last debug print function