fix Identical code