removing duplicate p