logic not ended