final, debug code removed