update the redundant code