removing use of module function