protecting variables