added function to helper