remove unneeded variables