toggle working fine