variable scope fixed