forgot debug code, cleaned up