remove unneeded code