logic 100 percent seems bug