missed some logic