Assignment to "p" variable not possible