update DPQ macro to use sapply with .... #130