remove extraneous dependencies and functions.