replace cur to pointer