removes some useless variables