adding variable scope