remove redundant code lines