removes unnesecary variable