remove uneeded variables