remove duplicated function