correction of code duplicate