UPDATE deleting unnecessary code