better endif ids