remove superfluous copy of p