damn logic