work on logic gate simulator