remove uneeded code