small discrete fixes