#43 make functions local