added function as module