typos and debug code removal