p.key changed for appointment