removed old debug method