make package variables into subroutine variables