adds pData<- method