replace cur to pointer v2