remove extraneous caps