remove unneeded piece of code