added variables at top