assign variables to use in function