fix duplication function

fix duplication function