strip out unneeded code