updated variable name based on comment from @wasade