debugcode added