did some logic