added function as parameter test