logic work tng