update constructor references from p to this