rewrite of prfDog
doc