removes some unused funcitions