removes some extraneous references