remove extraneous function