automatically create ptrptr type when it is in the signature