turns module function into callable function. moves variables to original program file