checking before making some changes