appending to d. not to p