added function as well