Remove duplicated function