updated added function