use ptype instead of self handling p-tags