fixed doublicated function error