separate out model variable creation