repare demo code