toggle operator working