eliminate  redundant code