removes unneccessary code
fixes nash