Delete repeated function