remove unneeded code tree