initial support for the toggle operation