remove duplicated functions