why you duplicate this code?