remove double code