remove uneeded code.