logic related 3