small efficiency tweak to multipart

suggested by trevor