remove duplicated func