removed the debug print statemtents