removed some debug code and fixed a warning